package day021.homework.p2;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

import day021.homework.p1.Student;

public class Tset {
    public static void main(String[] args) throws IOException,ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("D:\\ideaProjects\\javase_code\\study-practice\\src" +
                "\\day021\\homework\\p1\\stu.txt"));
        Student s = null;
        s = (Student) ois.readObject();

        System.out.println(s.getName());

        ois.close();
    }
}
